﻿<!--
(c) Copyright Fernando Cerqueira.
This source is subject to the Microsoft Public License (Ms-PL).
Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
All other rights reserved.
-->

<UserControl x:Class="WindowsPhoneCommands.PhoneProjectLocation"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:res="clr-namespace:WindowsPhoneCommands"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="600">
    <Grid Margin="10">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition/>
    	</Grid.RowDefinitions>
		<StackPanel Orientation="Horizontal" Margin="0,0,0,10">
            <Button Content="{Binding Source={x:Static res:Resources.XExecLocation}}" Margin="10,0,0,0" Padding="3" Name="BntSave" Click="BntSaveClick" />
        </StackPanel>
		<ScrollViewer Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" UseLayoutRounding="True" Margin="0">
			<StackPanel>
				<GroupBox Padding="5,0" Margin="0,0,10,0">
                    <GroupBox.Header>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Source={x:Static res:Resources.XProject}}" FontWeight="Bold" VerticalAlignment="Center" />
                            <TextBlock x:Name="CurrSuppCult" FontWeight="Bold" Margin="10,0,0,0" />
                        </StackPanel>
                    </GroupBox.Header>
                    <Grid Margin="0,5,0,10" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <StackPanel>
                            <TextBlock Text="{Binding Source={x:Static res:Resources.XTitNeutralLng}}" Margin="0,0,0,2" />
                            <ComboBox x:Name="CboPrjLng" HorizontalAlignment="Left" SelectionChanged="CboPrjLngSelectionChanged" LostFocus="CboPrjLngLostFocus" MinWidth="300" VerticalContentAlignment="Top" Margin="0,0,10,0" />
                            <StackPanel Orientation="Horizontal" Margin="0,3,0,0">
                                <CheckBox x:Name="ChkHelperXml" Content="{Binding Source={x:Static res:Resources.XChkCreateXmlResource}}" Margin="0" IsChecked="True"/>
                                <TextBlock x:Name="DefaultHelper" Text="()" VerticalAlignment="Bottom" Margin="5,0,0,0" />
                                <TextBlock Text="{Binding Source={x:Static res:Resources.Xhelper}}" VerticalAlignment="Bottom" Margin="5,0,0,0" />
                            </StackPanel>
                        </StackPanel>
                        <StackPanel Grid.Column="1">
                            <StackPanel Orientation="Horizontal" Margin="0,0,0,2">
                                <TextBlock Text="{Binding Source={x:Static res:Resources.XSource}}" />
                                <TextBlock x:Name="ExistFile" Text="{Binding Source={x:Static res:Resources.XResFileExists}}" VerticalAlignment="Bottom" Margin="5,0,0,0" Visibility="Hidden" />
                            </StackPanel>
                            <ComboBox x:Name="CboFilesResx" HorizontalAlignment="Left" IsEnabled="False" SelectionChanged="CboFilesResxSelectionChanged" LostFocus="CboFilesResxLostFocus" MinWidth="300" Margin="0,0,10,0" />
                            <StackPanel Orientation="Horizontal">
                                <CheckBox x:Name="ChkNewResource" Content="{Binding Source={x:Static res:Resources.XChkCreateResource}}" IsChecked="True" Click="ChkNewResourceClick" VerticalContentAlignment="Center" Margin="0,3,0,0" />
                                <TextBlock x:Name="DefaultNewresource" Text="()" VerticalAlignment="Bottom" Margin="5,0,0,0" />
                            </StackPanel>
                        </StackPanel>
                    </Grid>
				</GroupBox>
				<GroupBox  Margin="0,5,10,0" Padding="5,0">
                    <GroupBox.Header>
                        <TextBlock Text="{Binding Source={x:Static res:Resources.XCreateLngRes}}" FontWeight="Bold"/>
                    </GroupBox.Header>
					<Grid>
				    	<Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
				    	</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <StackPanel Margin="0,5,0,0" Grid.ColumnSpan="3">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="auto" />
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <StackPanel Margin="0,0,10,0">
                                    <CheckBox Content="{Binding Source={x:Static res:Resources.XupdateAccessModifier}}" Margin="0,0,0,3" Name="ChkUpdateAccessMod" />
                                    <ComboBox x:Name="CboAccessMod" HorizontalAlignment="Left" MinWidth="300" Margin="0,0,0,10">
                                        <ComboBoxItem Content="{Binding Source={x:Static res:Resources.XAccessModifierPublic}}" IsSelected="True" Tag="P" />
                                        <ComboBoxItem Content="{Binding Source={x:Static res:Resources.XAccessModifierInternal}}" Tag="I" />
                                        <ComboBoxItem Content="{Binding Source={x:Static res:Resources.XAccessModifierNoCode}}" Tag="N" />
                                    </ComboBox>
                                </StackPanel>
                                <StackPanel Margin="0,0,10,0" Grid.Column="1">
                                    <TextBlock Text="{Binding Source={x:Static res:Resources.XTitTargetFolder}}" Margin="0,0,0,3" />
                                    <ComboBox x:Name="CboTargetFolder" HorizontalAlignment="Left" MinWidth="300" Margin="0,0,0,15" SelectionChanged="CboTargetFolderSelectionChanged" />
                                </StackPanel>
                            </Grid>
                        </StackPanel>
						<StackPanel x:Name="Col0SupLng" Orientation="Vertical" Grid.Row="1" Grid.Column="0">
						</StackPanel>
						<StackPanel x:Name="Col1SupLng" Orientation="Vertical" Grid.Row="1" Grid.Column="1">
						</StackPanel>
                        <StackPanel x:Name="Col2SupLng" Orientation="Vertical" Grid.Row="1" Grid.Column="2">
                        </StackPanel>
                    </Grid>
				</GroupBox>
			</StackPanel>			
		</ScrollViewer>
	</Grid>
</UserControl>
